import Vue from 'vue'
import Router from 'vue-router'
import Resume from "../components/Resume"

import KMeans from "../components/k4s/KMeans"
import KMeansResume from "../components/k4s/KMeansResume"
import KMeansUpload from "../components/k4s/KMeansUpload"
import KMeansStrategy from "../components/k4s/KMeansStrategy"
import KMeansDo from "../components/k4s/KMeansDo"
import KMeansResult from "../components/k4s/KMeansResult"

import LVQ from "../components/l1q/LVQ"
import LVQResume from "../components/l1q/LVQResume"
import LVQUpload from "../components/l1q/LVQUpload"
import LVQStrategy from "../components/l1q/LVQStrategy"
import LVQDo from "../components/l1q/LVQDo"
import LVQResult from "../components/l1q/LVQResult"

import GMM from "../components/g1m/GMM"
import GMMResume from "../components/g1m/GMMResume"
import GMMUpload from "../components/g1m/GMMUpload"
import GMMStrategy from "../components/g1m/GMMStrategy"
import GMMDo from "../components/g1m/GMMDo"
import GMMResult from "../components/g1m/GMMResult"

import DBSCAN from "../components/d4n/DBSCAN"
import DBSCANResume from "../components/d4n/DBSCANResume"
import DBSCANUpload from "../components/d4n/DBSCANUpload"
import DBSCANStrategy from "../components/d4n/DBSCANStrategy"
import DBSCANDo from "../components/d4n/DBSCANDo"
import DBSCANResult from "../components/d4n/DBSCANResult"

import AGNES from "../components/a3s/AGNES"
import AGNESResume from "../components/a3s/AGNESResume"
import AGNESUpload from "../components/a3s/AGNESUpload"
import AGNESStrategy from "../components/a3s/AGNESStrategy"
import AGNESDo from "../components/a3s/AGNESDo"
import AGNESResult from "../components/a3s/AGNESResult"

import DAKMeans from "../components/d6s/DAKMeans"
import DAKMeansResume from "../components/d6s/DAKMeansResume"
import DAKMeansUpload from "../components/d6s/DAKMeansUpload"
import DAKMeansStrategy from "../components/d6s/DAKMeansStrategy"
import DAKMeansDo from "../components/d6s/DAKMeansDo"
import DAKMeansResult from "../components/d6s/DAKMeansResult"

import Inner from "../components/i3r/Inner"
import InnerResume from "../components/i3r/InnerResume"
import InnerUpload from "../components/i3r/InnerUpload"
import InnerChoose from "../components/i3r/InnerChoose"
import InnerDo from "../components/i3r/InnerDo"
import InnerResult from "../components/i3r/InnerResult"

import Outer from "../components/o3r/Outer"
import OuterResume from "../components/o3r/OuterResume"
import OuterUpload from "../components/o3r/OuterUpload"
import OuterChoose from "../components/o3r/OuterChoose"
import OuterDo from "../components/o3r/OuterDo"
import OuterResult from "../components/o3r/OuterResult"

import Address from "../components/Address"
import upload from "element-ui/packages/upload/src/ajax"



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Resume',
      component: Resume
    },
    {
      path: '/resume',
      name: 'Resume',
      component: Resume
    },
    {
      path: '/kmeans',
      name: 'KMeans',
      component: KMeans,
      children: [
        {
          path: 'resume',
          component: KMeansResume
        },
        {
          path: 'upload',
          component: KMeansUpload
        },
        {
          path: 'strategy',
          component: KMeansStrategy
        },
        {
          path: 'do',
          component: KMeansDo
        },
        {
          path: 'result',
          component: KMeansResult
        }
      ]
    },
    {
      path: '/lvq',
      name: 'LVQ',
      component: LVQ,
      children: [
        {
          path: 'resume',
          component: LVQResume
        },
        {
          path: 'upload',
          component: LVQUpload
        },
        {
          path: 'strategy',
          component: LVQStrategy
        },
        {
          path: 'do',
          component: LVQDo
        },
        {
          path: 'result',
          component: LVQResult
        }
      ]
    },
    {
      path: '/gmm',
      name: 'GMM',
      component: GMM,
      children: [
        {
          path: 'resume',
          component: GMMResume
        },
        {
          path: 'upload',
          component: GMMUpload
        },
        {
          path: 'strategy',
          component: GMMStrategy
        },
        {
          path: 'do',
          component: GMMDo
        },
        {
          path: 'result',
          component: GMMResult
        },
      ]
    },
    {
      path: '/dbscan',
      name: 'DBSCAN',
      component: DBSCAN,
      children: [
        {
          path: 'resume',
          component: DBSCANResume
        },
        {
          path: 'upload',
          component: DBSCANUpload
        },
        {
          path: 'strategy',
          component: DBSCANStrategy
        },
        {
          path: 'do',
          component: DBSCANDo
        },
        {
          path: 'result',
          component: DBSCANResult
        },
      ]
    },
    {
      path: '/agnes',
      name: 'AGNES',
      component: AGNES,
      children: [
        {
          path: 'resume',
          component: AGNESResume
        },
        {
          path: 'strategy',
          component: AGNESStrategy
        },
        {
          path: 'upload',
          component: AGNESUpload
        },
        {
          path: 'do',
          component: AGNESDo
        },
        {
          path: 'result',
          component: AGNESResult
        },
      ]
    },
    {
      path: '/dakmeans',
      name: 'DAKMeans',
      component: DAKMeans,
      children: [
        {
          path: 'resume',
          component: DAKMeansResume
        },
        {
          path: 'upload',
          component: DAKMeansUpload
        },
        {
          path: 'strategy',
          component: DAKMeansStrategy
        },
        {
          path: 'do',
          component: DAKMeansDo
        },
        {
          path: 'result',
          component: DAKMeansResult
        }
      ]
    },
    {
      path: '/inner',
      name: 'Inner',
      component: Inner,
      children: [
        {
          path: 'resume',
          component: InnerResume
        },
        {
          path: 'upload',
          component: InnerUpload
        },
        {
          path: 'choose',
          component: InnerChoose
        },
        {
          path: 'do',
          component: InnerDo
        },
        {
          path: 'result',
          component: InnerResult
        }
      ]
    },
    {
      path: '/outer',
      name: 'Outer',
      component: Outer,
      children: [
        {
          path: 'resume',
          component: OuterResume,
        },
        {
          path: 'upload',
          component: OuterUpload,
        },
        {
          path: 'choose',
          component: OuterChoose,
        },
        {
          path: 'do',
          component: OuterDo,
        },
        {
          path: 'result',
          component: OuterResult,
        },
      ]
    },
    {
      path: '/address',
      name: 'ADDRESS',
      component: Address
    }
  ]
})
